home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / CONTRIB / GENCLASS.ZIP / GENCLASS.DOC < prev    next >
Encoding:
Text File  |  1995-04-28  |  1.9 KB  |  66 lines

  1. This is genclass.  A C++ template generator using C++ prototypes.
  2.  
  3.    genclass program: ==> ported by Chris Anderson
  4.  
  5.    [original by Doug Lea (dl@rocky.oswego.edu)
  6.     Copyright (C) 1994 Free Software Foundation]
  7.  
  8. Generate classes from prototypes
  9.  
  10.         genclass -[duv] -l [proto ...]
  11.         genclass -[duv] -c [proto ...]
  12.         genclass -[duv] -[1o:p:] type {ref|val} proto
  13.         genclass -[duv] -[2o:p:] type1 {ref|val} type2 {ref, val}
  14.  
  15. -------------------------------------------------------------------------
  16. First a quick explanation:  
  17.  
  18. This program creates c++ code using prototype templates.  The documentation
  19. is included with the DJGPP info files (look in libg.inf).
  20.  
  21.  
  22. A few comments:  This program will need the env variable PROTODIR set to 
  23. the directory that contains the prototype templates.  I hope by including
  24. a section with the djgpp.env file that this will happen automagically.
  25.  
  26. [genclass]
  27. PROTODIR=<directory>
  28.  
  29. Otherwise you can hard code (ughh!!) the directory in the appropriate place.
  30.  
  31.  
  32. A few examples:
  33.  
  34. genclass -l  ==> will show a list of all the classes available
  35. genclass -c  ==> is essentially the same thing in a different format
  36.  
  37. genclass -1 int ref DLList -o output  
  38.  
  39.    Will create output.cc and output.h file for the class Double Linked List.
  40.    It will create a class that passes by reference an integer value.
  41.  
  42. genclass -2 int ref char val Map -o output
  43.  
  44.   Will create output.cc and output.h for the class Map.  
  45.  
  46.  
  47. All the classes are well documented in the INFO files.
  48.  
  49.  
  50. Suppling the additional -d argument will print out additional
  51. debugging info.
  52.  
  53.  
  54. Good Luck
  55.  
  56. _______________________________________________________________
  57.  
  58. Christopher L. Anderson                    LEXIS-NEXIS
  59. Senior Product Analyst                     P.O. Box 933
  60. chrisa@lexis-nexis.com                     Dayton, OH 45401
  61. http://www.lexis-nexis.com/~chrisa         (513) 865-1844
  62. _______________________________________________________________
  63.  
  64.  
  65.  
  66.